package com.john.seckill.vo;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

/**
 * 公共返回对象枚举
 * 日期 2021/5/19 14:56
 * 创建者：john
 */
@Getter
@ToString
@AllArgsConstructor
public enum ResultBeanEnum {
    SUCCESS(200,"SUSSESS"),
    ERROR(500,"服务端错误"),
    //登录模块5002xx
    LOGIN_ERROT(500210,"用户名或密码错误"),
    MOBILE_ERROT(500211,"手机号码格式不正确"),
    BIND_ERROR(500212,"参数校验异常"),
    MOBILE_NOT_EXIST(500213,"手机号码不存在"),
    PASSWORD_UPDATE_FAIL(500214,"密码更新错误"),
    //秒杀模块
    EMPTY_STOCK(500500,"库存不足"),
    REPEATE_ERROR(500501,"该商品每人限购一件")
    ;
    private final Integer code;
    private final String message;
}
